Hotword suppression

ABSTRACT

A method includes obtaining, by data processing hardware, a plurality of non-watermarked speech samples. Each non-watermarked speech does not include an audio watermark sample. The method includes, from each non-watermarked speech sample of the plurality of non-watermarked speech samples, generating one or more corresponding watermarked speech samples that each include at least one audio watermark. The method includes training, using the plurality of non-watermarked speech samples and corresponding watermarked speech samples, a model to determine whether a given audio data sample includes an audio watermark, and after training the model, transmitting the trained model to a user computing device.

CROSS-REFERENCE TO RELATED APPLICATION

This patent application is a continuation of, and claims priority under 35 U.S.C. § 120 from, U.S. patent application Ser. No. 16/418,415, filed on May 21, 2019, which claims priority under 35 U.S.C. § 119(e), to U.S. Provisional Application No. 62/674,973, filed on May 22, 2018. The disclosures of these prior applications are considered part of the disclosure of this application and are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

This disclosure generally relates to automated speech processing.

BACKGROUND

The reality of a speech-enabled home or other environment—that is, one in which a user need only speak a query or command out loud and a computer-based system will field and answer the query and/or cause the command to be performed—is upon us. A speech-enabled environment (e.g., home, workplace, school, etc.) can be implemented using a network of connected microphone devices distributed throughout the various rooms or areas of the environment. Through such a network of microphones, a user has the power to orally query the system from essentially anywhere in the environment without the need to have a computer or other device in front of him/her or even nearby. For example, while cooking in the kitchen, a user might ask the system “how many milliliters in three cups?” and, in response, receive an answer from the system, e.g., in the form of synthesized voice output. Alternatively, a user might ask the system questions such as “when does my nearest gas station close,” or, upon preparing to leave the house, “should I wear a coat today?”

Further, a user may ask a query of the system, and/or issue a command, that relates to the user's personal information. For example, a user might ask the system “when is my meeting with John?” or command the system “remind me to call John when I get back home.”

SUMMARY

For a speech-enabled system, the users' manner of interacting with the system is designed to be primarily, if not exclusively, by means of voice input. Consequently, the system, which potentially picks up all utterances made in the surrounding environment including those not directed to the system, must have some way of discerning when any given utterance is directed at the system as opposed, e.g., to being directed at an individual present in the environment. One way to accomplish this is to use a “hotword”, which by agreement among the users in the environment, is reserved as a predetermined word or words that is spoken to invoke the attention of the system. In an example environment, the hotword used to invoke the system's attention are the words “OK computer.” Consequently, each time the words “OK computer” are spoken, it is picked up by a microphone, conveyed to the system, which may perform speech recognition techniques or use audio features and neural networks to determine whether the hotword was spoken and, if so, awaits an ensuing command or query. Accordingly, utterances directed at the system take the general form [HOTWORD][QUERY], where “HOTWORD” in this example is “OK computer” and “QUERY” can be any question, command, declaration, or other request that can be speech recognized, parsed and acted on by the system, either alone or in conjunction with the server via the network.

This disclosure discusses an audio watermarking based approach to distinguish rerecorded speech, e.g. broadcasted speech or text-to-speech audio, from live speech. This distinction enables detection of false hotwords triggers in an input comprising rerecorded speech, and allows the false hotword trigger(s) to be suppressed. Live speech input from a user will not, however be watermarked, and hotwords in a speech input that is determined not to be watermarked may be not suppressed. The watermark detection mechanisms are robust to noisy and reverberant environments and may use a convolutional neural network based detector which is designed to satisfy the goals of small footprint, both memory and computation, and low latency. The scalability advantages of this approach are highlighted in preventing simultaneous hotword triggers on millions of devices during large viewership television events.

Hotword based triggering may be a mechanism for activating virtual assistants. Distinguishing hotwords in live speech from those in recorded speech, e.g., advertisements, may be a problem as false hotword triggers lead to unintentional activation of the virtual assistant. Moreover, where a user has virtual assistants installed on multiple devices it is even possible for speech output from one virtual assistant to contain a hotword that unintentionally triggers another virtual assistant. Unintentional activation of a virtual assistant may generally be undesirable. For example, if a virtual assistant is used to control home automation devices, unintentional activation of the virtual assistant may for example lead to lighting, heating or air-conditioning equipment being unintentionally turned on, thereby leading to unnecessary energy consumption, as well as being inconvenient for the user. Also, when a device is turned on it may transmit messages to other devices (for example, to retrieve information from other devices, to signal its status to other devices, to communicate with a search engine to perform a search, etc.) so that unintentionally turning on a device may also lead to unnecessary network traffic and/or unnecessary use of processing capacity, to unnecessary power consumption, etc. Moreover, unintentional activation of equipment, such as lighting, heating or air-conditioning equipment, can cause unnecessary wear of the equipment and degrade its reliability. Further, as the range of virtual assistant-controlled equipment and devices increases, so does the possibility that unintentional activation of a virtual assistant may be potentially dangerous. Also, unintentional activation of a virtual assistant can cause concerns over privacy.

According to an innovative aspect of the subject matter described in this application, a method for suppressing hotwords includes the actions of receiving, by a computing device, audio data corresponding to playback of an utterance; providing, by the computing device, the audio data as an input to a model (i) that is configured to determine whether a given audio data sample includes an audio watermark and (ii) that was trained using watermarked audio data samples that each include an audio watermark sample and non-watermarked audio data samples that do not each include an audio watermark sample; receiving, by the computing device and from the model (i) that is configured to determine whether the given audio data sample includes the audio watermark and (ii) that was trained using the watermarked audio data samples that include the audio watermark and the non-watermarked audio data samples that do not include the audio watermark, data indicating whether the audio data includes the audio watermark; and, based on the data indicating whether the audio data includes the audio watermark, determining, by the computing device, to continue or cease processing of the audio data.

These and other implementations can each optionally include one or more of the following features. The action of receiving the data indicating whether the audio data includes the audio watermark includes receiving the data indicating that the audio data includes the audio watermark. The action of determining to continue or cease processing of the audio data includes determining to cease processing of the audio data based on receiving the data indicating that the audio data includes the audio watermark. The actions further include, based on determining to cease processing of the audio data, ceasing, by the computing device, processing of the audio data. The action of receiving the data indicating whether the audio data includes the audio watermark includes receiving the data indicating that the audio data does not include the audio watermark. The action of determining to continue or cease processing of the audio data includes determining to continue processing of the audio data based on receiving the data indicating that the audio data does not include the audio watermark.

The actions further include, based on determining to continue processing of the audio data, continuing, by the computing device, processing of the audio data. The action of processing of the audio data includes generating a transcription of the utterance by performing speech recognition on the audio data. The action of processing of the audio data includes determining whether the audio data includes an utterance of a particular, predefined hotword. The actions further include, before providing the audio data as an input to the model (i) that is configured to determine whether a given audio data sample includes an audio watermark and (ii) that was trained using watermarked audio data samples that each include an audio watermark sample and non-watermarked audio data samples that do not each include an audio watermark sample, determining, by the computing device, that the audio data includes an utterance of a particular, predefined hotword. The actions further include determining, by the computing device, that the audio data includes an utterance of a particular, predefined hotword. The action of providing the audio data as an input to the model (i) that is configured to determine whether a given audio data sample includes an audio watermark and (ii) that was trained using watermarked audio data samples that each include an audio watermark sample and non-watermarked audio data samples that do not each include an audio watermark sample is in response to determining that the audio data includes an utterance of a particular, predefined hotword.

The actions further include receiving, by the computing device, the watermarked audio data samples that each include an audio watermark, the non-watermarked audio data samples that do not each include an audio watermark, and data indicating whether each watermarked and non-watermarked audio sample includes an audio watermark; and training, by the computing device and using machine learning, the model using the watermarked audio data samples that each include an audio watermark, the non-watermarked audio data samples that do not each include the audio watermark, and the data indicating whether each watermarked and non-watermarked audio sample includes an audio watermark. At least a portion of the watermarked audio data samples each include an audio watermark at multiple, periodic locations. Audio watermarks in one of the watermarked audio data samples are different to audio watermark in another of the watermarked audio data samples. The actions further include determining, by the computing device, a first time of receipt of the audio data corresponding to playback of an utterance; receiving, by the computing device, a second time that an additional computing device provided, for output, the audio data corresponding to playback of an utterance and data indicating whether the audio data included a watermark; determining, by the computing device, that the first time matches the second time; and, based on determining that the first time matches the second time, updating, by the computing device, the model using the data indicating whether the audio data included a watermark.

Other implementations of this aspect include corresponding systems, apparatus, and computer programs recorded on computer storage devices, each configured to perform the operations of the methods. Other implementations of this aspect include a computer-readable medium storing software comprising instructions executable by one or more computers which, upon such execution, cause the one or more computers to perform operations comprising any of the methods described herein.

Particular implementations of the subject matter described in this specification can be implemented so as to realize one or more of the following advantages. A computing device may respond to hotwords included in live speech while not responding to hotwords that are included in recorded media. This can reduce or prevent unintentional activation of the device, and so save battery power and processing capacity of the computing device. Network bandwidth may also be preserved with fewer computing devices performing search queries upon receiving hotwords with audio watermarks.

The details of one or more implementations of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example system for suppressing hotword triggers when detecting a hotword in recorded media.

FIG. 2 is a flowchart of an example process for suppressing hotword triggers when detecting a hotword in recorded media.

FIG. 3 illustrates an example minimum masking threshold, energy, and absolute threshold of hearing for a frame in the watermarking region.

FIG. 4 illustrates an example magnitude spectrogram of the host signal, an example magnitude spectrogram of the watermark signal, an example replicated sign matrix of the watermark signal, and an example correlation of the replicated sign matrix pattern with a single instance of the sign matrix, where the vertical lines represent example boundaries of the watermark pattern between replications.

FIG. 5 illustrates an example neural network architecture used for the watermark detector.

FIG. 6 illustrates an example match-filter created by a replication of a cross-correlation pattern.

FIG. 7 illustrates an example neural network output and an example match-filtered neural network output for a non-watermarked signal.

FIG. 8 illustrates an example of a computing device and a mobile computing device.

In the drawings, like reference numbers represent corresponding parts throughout.

DETAILED DESCRIPTION

FIG. 1 illustrates an example system 100 for suppressing hotword triggers when detecting a “hotword” in recorded media. Briefly, and as described in more detail below, the computing device 104 outputs an utterance 108 that includes an audio watermark 116 and an utterance of a predefined hotword 110. The computing device 102 detects the utterance 108 and determines that the utterance 108 includes the audio watermark 134 by using an audio watermark identification model 158. Based on the utterance 108 including the audio watermark 134, the computing device 102 does not respond to the predefined hotword 110.

In more detail, the computing device 104 is playing a commercial for Nugget World. During the commercial, an actor in the commercial says the utterance 108, “Ok computer, what's in a nugget?” The utterance 108 includes the hotword 110 “Ok computer” and a query 112 that includes other terms of “what's in a nugget?” The computing device 104 outputs the utterance 108 through a loudspeaker. Any computing device in the vicinity with a microphone is able to detect the utterance 108.

The audio of the utterance 108 includes a speech portion 114 and an audio watermark 116. The creator of the commercial may add the audio watermark 116 to ensure computing devices that detect the utterance 108 do not respond to the hotword 110. In some implementations, the audio watermark 116 may include audio frequencies that are higher or lower than the human hearing range. For example, the audio watermark 116 may include frequencies that are greater than 20 kHz or less than 20 Hz. In some implementations, the audio watermark 116 may include audio that is within the human hearing range but is not detectable by humans because of its sounds similar to noise. For example, the audio watermark 116 may include a frequency pattern between 8 and 10 kHz. The strength of different frequency bands may be imperceptible to a human, but may be detectable by a computing device. As illustrated by the frequency domain representation 115, the utterance 108 includes an audio watermark 116 that is in a higher frequency range than the audible portion 114.

In some implementations, the computing device 104 may use an audio watermarker 120 to add a watermark to speech data 118. The speech data 118 may be the recorded utterance 108 of “Ok computer, what's in a nugget?” The audio watermarker 120 may add a watermark at periodic intervals in the speech data 118. For example, the audio watermarker 120 may add a watermark every two hundred milliseconds. In some implementations, the computing device 104 may identify the portion of the speech data 118 that includes the hotword 110, for example, by performing speech recognition. The audio watermarker 120 may add periodic watermarks over the audio of the hotword 110, before the hotword 110, and/or after the hotword 110. For example, the audio watermarker 120 can add three (or any other number) watermarks at periodic intervals over the audio of “ok computer.”

The techniques for adding a watermark 120 are discussed in detail below with respect to FIGS. 3-7. In general, each watermark 120 is different for each speech data sample. The audio watermarker 120 may add an audio watermark every two or three hundred milliseconds to the audio of utterance 108 and add a different or the same audio watermark every two or three hundred milliseconds to audio of the utterance, “Ok computer, order a cheese pizza.” The audio watermarker 120 may generate a watermark for each audio sample such that the watermark minimizes distortion of the audio sample. This may be important because the audio watermarker 120 may add watermarks that are within the frequency range that humans can detect. The computing device 104 may store the watermarked audio samples in the watermarked speech 112 for later output by the computing device 104.

In some implementations, each time the computing device 104 outputs watermarked audio, the computing device 104 may store data indicating the outputted audio in the playback logs 124. The playback logs 124 may include data identifying any combination of the outputted audio 108, the date and time of outputting the audio 108, the computing device 104, the location of the computing device 104, a transcription of the audio 108, and the audio 108 without the watermark.

The computing device 102 detects the utterance 108 through a microphone. The computing device 102 may be any type of device that is capable of receiving audio. For example, computing device 102 can be a desktop computer, laptop computer, a tablet computer, a wearable computer, a cellular phone, a smart phone, a music player, an e-book reader, a navigation system, a smart speaker and home assistant, wireless (e.g., Bluetooth) headset, hearing aid, smart watch, smart glasses, activity tracker, or any other appropriate computing device. As illustrated in FIG. 1, computing device 102 is a smart phone. The computing device 104 can be any device capable of outputting audio such as, for example, a television, a radio, a music player, a desktop computer, laptop computer, a tablet computer, a wearable computer, a cellular phone, or a smart phone. As illustrated in FIG. 1, the computing device 104 is a television.

The microphone of computing device 102 may be part of an audio subsystem 150. The audio subsystem 150 may include buffers, filters, analog to digital converters that are each designed to initially process the audio received through the microphone. The buffer may store the current audio received through the microphone and processed by the audio subsystem 150. For example, the buffer stores the previous five seconds of audio data.

The computing device 102 includes an audio watermark identifier 152. The audio watermark identifier 152 is configured to process the audio received through the microphone and/or stored in the buffer and identify audio watermarks that are included in the audio. The audio watermark identifier 152 may be configured to provide the processed audio as an input to the audio watermark identification model 158. The audio watermark identification model 158 may be configured to receive audio data and output data indicating whether the audio data includes a watermark. For example, the audio watermark identifier 152 may continuously provide audio processed through the audio subsystem 150 to the audio watermark identification model 158. As the audio watermark identifier 152 provides more audio, the accuracy of the audio watermark identification model 158 may increase. For example, after three hundred milliseconds, the audio watermark identification model 158 may have received audio that includes one watermarks. After five hundred milliseconds, the audio watermark identification model 158 may have received audio that includes two watermarks. In an embodiment where the watermarks in any one audio sample are all identical to one another, the audio watermark identification model 158 can improve its accuracy by processing more audio.

In some implementations, the audio watermark identifier 152 may be configured to remove any detected watermark from the audio received from the audio subsystem 150. After removing the watermark, the audio watermark identifier 152 may provide audio without the watermark to the hotworder 154 and/or the speech recognizer 162. In some implementations, the audio watermark identifier 152 may be configured to pass the audio received from the audio subsystem 150 to the hotworder 154 and/or the speech recognizer 162 without removing the watermark.

The hotworder 154 is configured to identify hotwords in audio received through the microphone and/or stored in the buffer. In some implementations, the hotworder 154 may be active at any time that the computing device 102 are powered on. The hotworder 154 may continuously analyze the audio data stored in the buffer. The hotworder 154 computes a hotword confidence score that reflects the likelihood that current audio data in the buffer includes a hotword. To compute the hotword confidence score, the hotworder 154 may extract audio features from the audio data such as filterbank energies or mel-frequency cepstral coefficients. The hotworder 154 may use classifying windows to process these audio features such as by using a support vector machine or a neural network. In some implementations, the hotworder 154 does not perform speech recognition to determine a hotword confidence score (for example by comparing extracted audio features from the received audio with corresponding audio features for one or more of hotwords, but without using the extracted audio features to perform speech recognition on the audio data). The hotworder 154 determines that the audio includes a hotword if the hotword confidence score satisfies a hotword confidence score threshold. For example, the hotworder 154 determines that the audio that corresponds to utterance 108 includes the hotword 110 if the hotword confidence score is 0.8 and the hotword confidence score threshold is 0.7. In some instances, the hotword may be referred to as a wake up word or an attention word.

The speech recognizer 162 may perform any type of process that generates a transcription based on incoming audio. For example, the speech recognizer 162 may user an acoustic model to identify phonemes in the audio data in the buffer. The speech recognizer 162 may use a language model to determine a transcription that corresponds to the phonemes. As another example, the speech recognizer 162 may use a single model that processes the audio data in the buffer and outputs a transcription.

In instances where the audio watermark identification model 158 determines that that the audio includes a watermark, the audio watermark identifier 152 may deactivate the speech recognizer 162 and/or the hotworder 154. By deactivating the speech recognizer 162 and/or the hotworder 154, the audio watermark identifier 152 may prevent further processing of the audio that may trigger the computing device 102 to respond to the hotword 110 and/or the query 112. As illustrated in FIG. 1, the audio watermark identifier 152 sets the hotworder 154 to an inactive state 156 and the speech recognizer 162 to an inactive state 160.

In some implementations, the default state of the hotworder 154 may be an active state and the default state of the speech recognizer 162 may be an active state. In this instance, the inactive state 156 and the inactive state 162 may expire after a predetermined amount of time. For example, after five seconds (or another predetermined amount of time), the states of both the hotworder 154 and the speech recognizer 162 may return to an active state. The five second period may renew each time the audio watermark identifier 152 detects an audio watermark. For example, if the audio 115 of the utterance 108 includes watermarks throughout the duration of the audio, then the hotworder 154 and the speech recognizer 162 may be set to the inactive state 156 and the inactive state 162 and may remain in that state for an additional five seconds after the end of the computing device 104 outputting the utterance 108. As another example, if the audio 115 of the utterance 108 includes watermarks throughout the utterance of the hotword 110, then the hotworder 154 and the speech recognizer 162 may be set to the inactive state 156 and the inactive state 162 and may remain in that state for an additional five seconds after the computing device 104 outputs the hotword 110, which will overlap outputting of the query 108.

In some implementations, the audio watermark identifier 152 may store data in the identification logs 164 that indicates a date and time that the audio watermark identifier 152 identified a watermark. For example, the audio watermark identifier 152 may identify a watermark in the audio of utterance 110 at 3-15 pm on Jun. 10, 2019. The identification logs 164 may store data identifying any combination of the time and date of receipt of the watermark, the transcription of the utterance that includes the watermark 134, the computing device 102, the watermark 134, the location of the computing device 102 when detecting the watermark, the underlying audio 132, the combined audio and watermark, and any audio detected a period of time before or after the utterance 108 or the watermark 134.

In some implementations, audio watermark identifier 152 may store data in the identification logs 164 that indicates a date and time that the audio watermark identifier 152 did not identify a watermark and the hotworder 154 identified a hotword. For example, at 7:15 pm on Jun. 20, 2019 the audio watermark identifier 152 may not identify a watermark in the audio of an utterance, and the hotworder 154 may identify a hotword in the audio of the utterance. The identification logs 164 may store data identifying any combination of the time and date of receipt of the non-watermarked audio and the hotword, the transcription of the utterance, the computing device 102, the location of the computing device, the audio detected a period of time before or after the utterance or the hotword.

In some implementations, the hotworder 154 may process the audio received from the audio subsystem 150 before, after, or concurrently with the audio watermark identifier 152. For example, the audio watermark identifier 152 may determine that the audio of the utterance 108 includes a watermark, and, at the same time, the hotworder 154 may determine that the audio of the utterance 108 includes a hotword. In this instance, the audio watermark identifier 152 may set the state of the speech recognizer 162 to the inactive state 160. The audio watermark identifier 152 may not be able to update the state 156 of the hotworder 154.

In some implementations, before the audio watermark identifier 152 uses the audio watermark identification model 158, the computing device 106 generates the watermark identification model 130 and provides the watermark identification model 130 to the computing device 102. The computing device 106 uses non-watermarked speech samples 136, an audio watermarker 138, and a trainer 144 that uses machine learning to generate the audio watermark identification models 148.

The non-watermarked speech samples 136 may include various speech samples collected under various conditions. The non-watermarked speech samples 136 may include audio samples of different users saying different terms, saying the same terms, saying terms with different types of background noise, saying terms in different languages, saying terms in different accents, saying terms recorded by different devices, etc. In some implementations, the non-watermarked speech samples 136 each include an utterance of a hotword. In some implementations, only some of the non-watermarked speech samples 136 include an utterance of a hotword.

The audio watermarker 138 may generate a different watermark for each non-watermarked speech sample. The audio watermarker 138 may generate one or more watermarked speech samples 140 for each non-watermarked speech sample. Using the same non-watermarked speech sample, the audio watermarker 138 may generate a watermarked speech sample that includes watermarks every two hundred milliseconds and another watermarked speech sample that includes watermarks every three hundred milliseconds. The audio watermarker 138 may also generate a watermarked speech sample that includes watermarks only overlapping the hotword, if present. The audio watermarker 138 may also generate a watermarked speech sample that includes watermarks that overlap the hotword and precede the hotword. In this instance, the audio watermarker 138 can make four different watermarked speech samples with the same non-watermarked speech sample. The audio watermarker 138 can also make more or less than four. In some instances, the audio watermarker 138 may operate similarly to the audio watermarker 120.

The trainer 144 uses machine learning and training data that includes the non-watermarked speech samples 136 and the watermarked speech samples 140 to generate the audio watermark identification model 148. Because the non-watermarked speech samples 136 and the watermarked speech samples 140 are labeled as including a watermark or not including a watermark, the trainer 148 can use training data that includes the non-watermarked speech samples 136 and labels that indicate that each sample does not include a watermark and the watermarked speech samples 140 and labels that indicate that each sample includes a watermark. The trainer 144, uses machine learning, to generate the audio watermark identification model 148 to be able to receive an audio sample and output whether the audio sample includes a watermark.

The computing device 106 can access the audio watermark identification model 148 and provide the model 128 to the computing device 102 to use in processing received audio data. The computing device 102 can store the model 128 in the audio watermark identification model 158.

The computing device 106 may update the audio watermark identification model 148 based on the playback logs 142 and the identification logs 146. The playback logs 142 may include data such as the playback data 126 received from the computing device 104 and stored in the playback logs 124. The playback logs 142 may include playback data from multiple computing devices that have outputted watermarked audio. The identification logs 146 may include data such as the identification data 130 received from the computing device 102 and stored in identification logs 164. The identification logs 146 may include additional identification data from multiple computing devices that are configured to identify audio watermarks and prevent execution of any command or queries included in the watermarked audio.

The trainer 144 may compare the playback logs 142 and the identification logs 146 to identify the matching entries that indicate that a computing device outputted watermarked audio and another computing device identified the watermark in the watermarked audio. The trainer 144 may also identify watermark identification errors in the identification logs 146 and the playback logs 142. A first type of watermark identification error may occur when the identification logs 146 indicate that a computing device identifies a watermark, but the playback logs 142 do not indicate the output of watermarked audio. A second type of watermark identification error may occur when the playback logs 142 indicate the output of watermarked audio, but the identification logs 146 indicate that a computing device in the vicinity of the watermarked audio did not identify the watermark.

The trainer 144 may update the errors and use the corresponding audio data as additional training data to update the audio watermark identification model 148. The trainer 144 may also update the audio watermark identification model 148 using the audio where the computing devices properly identified the watermarks. The trainer 144 may use both the audio outputted by the computing devices and the audio detected by the computing devices as training data. The trainer 144 may update the audio watermark identification model 148 using machine learning and the audio data stored in the playback logs 142 and the identification logs 146. The trainer 144 may use the watermarking labels provided in the playback logs 142 and identification logs 146 and the corrected labels from the error identification technique described above as part of the machine learning training process.

In some implementations, the computing device 102 and several other computing devices may be configured to transmit the audio 115 to a server for processing by a server-based hotworder and/or a server-based speech recognizer that are running on the server. The audio watermark identifier 152 may indicate that the audio 115 does not include an audio watermark. Based on that determination, the computing device 102 may transmit the audio to the server for further processing by the server-based hotworder and/or the server-based speech recognizer. The audio watermark identifiers of the several other computing devices may also indicate that the audio 115 does not include an audio watermark. Based on those determinations, each of the other computing devices may transmit their respective audio to the server for further processing by the server-based hotworder and/or the server-based speech recognizer. The server may determine whether audio from each computing device includes a hotword and/or generate a transcription of the audio and transmit the results back to each computing device.

In some implementations, the server may receive data indicating a watermark confidence score for each of the watermark decisions. The server may determine that the audio received the by the computing device 102 and the other computing devices is from the same source based on the location of the computing device 102 and the other computing devices, characteristics of the received audio, receiving each audio portion at a similar time, and any other similar indicators. In some instances, each of the watermark confidence scores may be within a particular range that includes a watermark confidence score threshold on one end of the range and another confidence score that may be a percentage difference from the watermark confidence score threshold, such as five percent less. For example, the range may be the watermark confidence score threshold of 0.80 to 0.76. In other instances, the other end of the range may be a fixed distance from the watermark confidence score threshold, such as 0.05. For example, the range may be the watermark confidence score threshold of 0.80 to 0.75.

If the server determines that each of the watermark confidence scores are within the range of being near the watermark confidence score threshold but not satisfying it, then the server may determine that the watermark confidence score threshold should be adjusted. In this instance, the server may adjust the watermark confidence score threshold to the lower end of the range. In some implementations, the server may update the watermarked speech samples 140 by including the audio received from each computing device in the watermarked speech samples 140. The trainer 144 may update the audio watermark identification model 148 using machine learning and the updated watermarked speech samples 140.

While FIG. 1 illustrates three different computing devices performing the different functions described above, any combination of one or more computing devices can perform any combination of the functions. For example, the computing device 102 may train the audio watermark identification model 148 instead of a separate computing device 106 training the audio watermark identification model 148.

FIG. 2 illustrates an example process 200 for suppressing hotword triggers when detecting a hotword in recorded media. In general, the process 200 processes received audio to determine whether the audio includes an audio watermark. If the audio includes an audio watermark, then the process 200 may suppress further processing of the audio. If the audio does not include an audio watermark, then the process 200 continues to process the audio and execute any query or command included in the audio. The process 200 will be described as being performed by a computer system comprising one or more computers, for example, the computing devices 102, 104, and/or 106 as shown in FIG. 1.

The system receives audio data corresponding to playback of an utterance (210). For example, a television may be playing a commercial and an actor in the commercial may say, “Ok computer, turn on the lights.” The system includes a microphone, and the microphone detects the audio of the commercial including the utterance of the actor.

The system provides the audio data as an input to a model (i) that is configured to determine whether a given audio data sample includes an audio watermark and (ii) that was trained using watermarked audio data samples that each include an audio watermark sample and non-watermarked audio data samples that do not each include an audio watermark sample (220). In some implementations, the system may determine that the audio data includes a hotword. Based on detecting the hotword, the system provides the audio data as an input to the model. For example, the system may determine that the audio data include “ok computer.” Based on detecting “ok computer,” the system provides the audio data to the model. The system may provide the portion of the audio data that included the hotword and the audio received after the hotword. In some instances, the system may provide a portion of audio from before the hotword.

In some implementations, the system may analyze the audio data to determine whether the audio data includes a hotword. The analysis may occur before or after providing the audio data as an input to the model. In some implementations, the system may train the model using machine learning and watermarked audio data samples that each include an audio watermark, non-watermarked audio data samples that do not each include an audio watermark, and data indicating whether each watermarked and non-watermarked audio sample includes an audio watermark. The system may train the model to output data indicating whether audio input to the model includes a watermark or does not include a watermark.

In some implementations, different watermarked audio signals may include different watermarks from one another (the watermarks in any one audio sample may be all identical to one another, but with watermarks in one audio signal being different to watermarks in another audio signal). The system may generate a different watermark for each audio signal to minimize distortion in the audio signal. In some implementations, the system may place the watermark at periodic intervals in the audio signal. For example, the system may place the watermark every two hundred milliseconds. In some implementations, the system may place the watermark over the audio that includes the hotword and/or a period of time before the hotword.

The system receives, from the model (i) that is configured to determine whether the given audio data sample includes the audio watermark and (ii) that was trained using the watermarked audio data samples that include the audio watermark and the non-watermarked audio data samples that do not include the audio watermark, data indicating whether the audio data includes the audio watermark (230). The system may receive an indication that the audio data includes a watermark or receive an indication that the audio data does not include a watermark.

The system, based on the data indicating whether the audio data includes the audio watermark, continues or ceases processing of the audio data (240). In some implementations, the system may cease processing of the audio data if the audio data includes the audio watermark. In some implementations, the system may continue processing of the audio data if the audio data does not include an audio watermark. In some implementations, the processing of the audio data may include performing speech recognition on the audio data and/or determining whether the audio data includes a hotword. In some implementations, the processing may include executing a query or command included in the audio data.

In some implementations, the system logs the time and date that the system received the audio data. The system may compare the time and date to a time and date received from the computing device that output the audio data. If the system determines that the date and time of the receipt of the audio data match the date and time of outputting the audio data, then the system may update the model using the audio data as additional training data. The system may identify whether the model was correct in determining whether the audio data included a watermark, and ensure that the audio data includes the correct watermark label when added to the training data.

In more detail, a software agent that can perform tasks for a user is generally referred to as a “virtual assistant”. A virtual assistant may for example be actuated by voice input from the user—for example may be programmed to recognize one or more trigger words that, when spoken by the user, cause the virtual assistant to be activated and perform a task associated with the trigger word that has been spoken. Such a trigger word is often referred to as a “hotword”. A virtual assistant may be provided on, for example, a user's computer mobile telephone or other user device. Alternatively, a virtual assistant may be integrated into another device, such as a so-called “smart speaker” (a type of wireless speaker with an integrated virtual assistant that offers interactive actions and hands-free activation with the help of one or more hotwords).

With the wide adoption of smart speakers additional issues arise. During events with large audience e.g., sports event that attracts over a 100 million viewers, advertisements with hotwords can lead to simultaneous triggering of virtual assistants. Due to the large viewership there can be a significant increase in the simultaneous queries to the speech recognition servers which can lead to denial-of-service (DOS).

Two possible mechanisms for filtering of false hotwords are those based on (1) audio fingerprinting, where the fingerprint from the query audio is checked against a database of fingerprints from known audio, like advertisements, to filter out false triggers, and (2) audio watermarking, where the audio is watermarked by the publisher and the query recorded by the virtual assistant is checked for the watermark for filtering.

This disclosure describes the design of a low-latency, small footprint watermark detector which uses convolutional neural networks. This watermark detector is trained to be robust to noisy and reverberant environments which may be frequent in the scenario-of-interest.

Audio watermarking may be used in copyright protection and second screen applications. In copyright protection watermark detection generally does not need to be latency sensitive as the entire audio signal is available for detection. In the case of second screen applications delays introduced due to high latency watermark detection may be tolerable. Unlike these two scenarios watermark detection in virtual assistants is very latency sensitive.

In known applications involving watermark detection, the embedded message constituting the watermark is typically unknown ahead of time, and the watermark detector has to decode the message sequence before it can determine whether the message sequence includes a watermark and, if so, determine the watermark. However, in some applications described herein, the watermark detector may be detecting a watermark pattern which is exactly known by the decoder/watermark detector. That is the publisher or provider of rerecorded speech content may watermark this with a watermark, and may make details of the watermark available to, for example, providers of a virtual assistant and/or providers of devices that include a virtual assistant. Similarly, the provider of a virtual assistant may arrange for speech output from the virtual assistant to be provided with a watermark and make details of the watermark available. As a result, once the watermark has been detected in a received message it is known that the received message is not live speech input from a user and the activation of a virtual assistant resulting from any hotword in the received message can be suppressed, without the need to wait until the entire message has been received and processed. This provides reduction in latency.

Some implementations for hotword suppression utilize the audio fingerprinting approach. This approach requires a fingerprint database of known audio. As maintenance of this database on the device is non-trivial on-device deployment of such solutions are not viable. However, a significant advantage of audio fingerprinting approach is that it may not require modifications to the audio publishing process. Hence, it can tackle even adversarial scenarios where the audio publisher is not a collaborator.

This disclosure describes a watermark based hotword suppression mechanism. The hotword suppression mechanism may use an on-device deployment that brings in the design constraints of memory and computation footprints. Further there is a constraint on latency to avoid impact on the user experience.

Watermark based approaches may require modification of the audio publishing process to add the watermark. Hence, they can sometimes only be used to detect audio published by collaborators. However, they may not require the maintenance of fingerprint databases. This feature enables several advantages.

A first advantage may be the feasibility of on-device deployment. This can be an advantage during high viewership events when several virtual assistants can get simultaneously triggered. Server based solutions for detecting these false triggers can lead to denial of service due to the scale of simultaneous triggers. A second advantage may be detection of unknown audio published by a collaborator, e.g., text-to-speech (TTS) synthesizer output where the publisher can be collaborative, but the audio is not known ahead of time. A third advantage may be scalability. Entities such as audio/video publishers on online platforms can watermark their audio to avoid triggering the virtual assistants. In some implementations, these platforms host several million hours of content which cannot be practically handled using the audio fingerprinting based approaches.

In some implementations, the watermark based approach described herein can be combined with the audio fingerprinting based approach which may have the ability to tackle adversarial agents.

The description below describes the watermark embedder and the watermark detector.

The watermark embedder may be based on spread spectrum based watermarking in the FFT domain. The watermark embedder may use a psychoacoustic model to estimate the minimum masking threshold (MMT) which is used to shape the amplitude of watermark signal.

To summarize this technique, regions of the host signal amenable for watermark addition are selected based on a minimum energy criterion. Discrete Fourier transform (DFT) coefficients are estimated for every host signal frame (25 ms windows −12.5 ms hop) in these regions. These DFT coefficients are used to estimate the minimum masking threshold (MMT) using the psychoacoustic model. The MMT is used to shape the magnitude spectrum for a frame of the watermark signal. FIG. 3 presents the estimated MMT, along with the host signal energy and absolute threshold of hearing. The phase of the host signal may be used for the watermark signal and the sign of the DFT coefficients is determined from the message payload. The message bit payload may be spread over a chunk of frames using multiple scrambling. In some implementations, the system may be detecting if a query is watermarked and may not have to transmit any payload. Hence, the system may randomly choose a sign matrix over a chunk of frames (e.g., 16 frames or 200 ms) and repeat this sign matrix across the watermarking region. This repetition of the sign matrix may be exploited to post-process the watermark detector output and improve the detection performance. Overlap add of the individual watermark frames may generate the watermark signal. Subplots (a) and (b) of FIG. 2 represent the magnitude spectra of the host signal and the watermark signal, and subplot (c) represents the sign matrix. The vertical lines represent the boundaries between two replications of the matrix.

The watermark signal may be added to the host signal in the time domain, after scaling it by a factor (e.g., α∈[0, 1]), to further ensure inaudibility of the watermark. In some implementations, α is determined iteratively using objective evaluation metrics like Perceptual Evaluation of Audio Quality (PEAQ). In some implementations, the system may use conservative scaling factors (e.g., α∈{0.1, 0.2, 0.3, 0.4, 0.5}) and evaluate detection performance at each of these scaling factors.

In some implementations, a design requirement for the watermark detector may be on-device deployment that places significant constraints on both the memory footprint of the model and its computational complexity. The description below describes convolutional neural network based model architectures for on-device keyword detection. In some implementations, the system may use temporal convolutional neural networks.

In some implementations, the neural network is trained to estimate the cross-correlation of the embedded watermark sign matrix (FIG. 4, subplot (c)) which may be a replication of the same 200 ms pattern with one instance of the 200 ms pattern. Subplot (d) in FIG. 4 shows the cross-correlation. Cross correlation may encode information about the start of each sign matrix block and may non-zero for the entire duration of the watermark signal within the host signal.

The system may train the neural network using a multi-task loss function. The primary task may be the estimation of the ground truth cross-correlation, and the auxiliary tasks may be the estimation of energy perturbation pattern and/or the watermark magnitude spectra. Mean square error may be computed between the ground-truth(s) and network output(s). Some or all of the losses may be interpolated after scaling the auxiliary losses with regularization constants. In some implementations, bounding each network output to just cover the dynamic range of the corresponding ground-truth may improve performance.

In some implementations, the system may post process network outputs. In some implementations, the watermark may not have a payload message and a single sign matrix is replicated throughout the watermarking region. This may result in a cross-correlation pattern which is periodic (FIG. 4, subplot (d)). This aspect can be exploited to eliminate spurious peaks in the network outputs. In some implementations and to improve performance, the system may use a match-filter created by replicating the cross-correlation pattern (see FIG. 6) over band-pass filters isolating the frequency of interest. FIG. 7 compares the network outputs, generated for a non-watermarked signal, before and after match-filtering. In some implementations, spurious peaks which do not have periodicity can be significantly suppressed. The ground truth 705 may be approximately 0.0 (e.g., between −0.01 and 0.01) and may track the x-axis more closely than the network output 710 and the match filtered network output 720. The network output 710 may vary with respect to the x-axis more than the ground truth 705 and the match filtered network output 720. The match filtered network output 720 may track the x-axis more closely than the network output 710 and may not track the x-axis as closely as the ground truth 705. The match filtered network output 720 may be smoother than the network output 710. The match filtered network output 720 may remain within a smaller range than the network output 710. For example, the match filtered network output 720 may stay between −0.15 and 0.15. The network output 710 may stay between −0.30 and 0.60.

Once the neural network has been trained, it may be used in a method of determining whether a given audio data sample includes an audio watermark, by applying a model embodying the neural network to an audio data sample. The method may include determining a confidence score that reflects a likelihood that the audio data includes the audio watermark; comparing the confidence score that reflects the likelihood that the audio data includes the audio watermark to a confidence score threshold; and based on comparing the confidence score that reflects the likelihood that the audio data includes the audio watermark to the confidence score threshold, determining whether to perform additional processing on the audio data.

In an embodiment the method comprises: based on comparing the confidence score that reflects the likelihood that the audio data includes the audio watermark to the confidence score threshold, determining that the confidence score satisfies the confidence score threshold, wherein determining whether to perform additional processing on the audio data, comprises determining to suppress performance of the additional processing on the audio data. In an embodiment the method comprises: based on comparing the confidence score that reflects the likelihood that the utterance includes the audio watermark to the confidence score threshold, determining that the confidence score does not satisfy the confidence score threshold, wherein determining whether to perform additional processing on the audio data, comprises determining to perform the additional processing on the audio data. In an embodiment the method comprises: receiving, from a user, data confirming performance of the additional processing on the audio data; and based on receiving the data confirming performance of the additional processing on the audio data, updating the model. In an embodiment the additional processing on the audio data comprises performing an action based on a transcription of the audio data; or determining whether the audio data includes a particular, predefined hotword. In an embodiment the method comprises: before applying, to the audio data, the model (i) that is configured to determine whether the given audio data sample includes the audio watermark and (ii) that was trained using the watermarked audio data samples that include the audio watermark and the non-watermarked audio data samples that do not include the audio watermark, determining that the audio data includes a particular, predefined hotword. In an embodiment the method comprises determining that the audio data includes a particular, predefined hotword, wherein applying, to the audio data, the model (i) that is configured to determine whether the given audio data sample includes the audio watermark and (ii) that was trained using watermarked audio data samples that include the audio watermark and non-watermarked audio data samples that do not include the audio watermark is in response to determining that the audio data includes the particular, predefined hotword. In an embodiment the method comprises: receiving the watermarked audio data samples that include the audio watermark and the non-watermarked audio data samples that do not include the audio watermark; and training, using machine learning, the model using the watermarked audio data samples that include the audio watermark and the non-watermarked audio data samples that do not include the audio watermark. In an embodiment the method comprises: at least a portion of the watermarked audio data samples include the audio watermark at multiple, periodic locations.

FIG. 8 shows an example of a computing device 800 and a mobile computing device 850 that can be used to implement the techniques described here. The computing device 800 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The mobile computing device 850 is intended to represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart-phones, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to be limiting.

The computing device 800 includes a processor 802, a memory 804, a storage device 806, a high-speed interface 808 connecting to the memory 804 and multiple high-speed expansion ports 810, and a low-speed interface 812 connecting to a low-speed expansion port 814 and the storage device 806. Each of the processor 802, the memory 804, the storage device 806, the high-speed interface 808, the high-speed expansion ports 810, and the low-speed interface 812, are interconnected using various buses, and may be mounted on a common motherboard or in other manners as appropriate. The processor 802 can process instructions for execution within the computing device 800, including instructions stored in the memory 804 or on the storage device 806 to display graphical information for a GUI on an external input/output device, such as a display 816 coupled to the high-speed interface 808. In other implementations, multiple processors and/or multiple buses may be used, as appropriate, along with multiple memories and types of memory. Also, multiple computing devices may be connected, with each device providing portions of the necessary operations (e.g., as a server bank, a group of blade servers, or a multi-processor system).

The memory 804 stores information within the computing device 800. In some implementations, the memory 804 is a volatile memory unit or units. In some implementations, the memory 804 is a non-volatile memory unit or units. The memory 804 may also be another form of computer-readable medium, such as a magnetic or optical disk.

The storage device 806 is capable of providing mass storage for the computing device 800. In some implementations, the storage device 806 may be or contain a computer-readable medium, such as a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid state memory device, or an array of devices, including devices in a storage area network or other configurations. Instructions can be stored in an information carrier. The instructions, when executed by one or more processing devices (for example, processor 802), perform one or more methods, such as those described above. The instructions can also be stored by one or more storage devices such as computer- or machine-readable mediums (for example, the memory 804, the storage device 806, or memory on the processor 802).

The high-speed interface 808 manages bandwidth-intensive operations for the computing device 800, while the low-speed interface 812 manages lower bandwidth-intensive operations. Such allocation of functions is an example only. In some implementations, the high-speed interface 808 is coupled to the memory 804, the display 816 (e.g., through a graphics processor or accelerator), and to the high-speed expansion ports 810, which may accept various expansion cards. In the implementation, the low-speed interface 812 is coupled to the storage device 806 and the low-speed expansion port 814. The low-speed expansion port 814, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet) may be coupled to one or more input/output devices, such as a keyboard, a pointing device, a scanner, or a networking device such as a switch or router, e.g., through a network adapter.

The computing device 800 may be implemented in a number of different forms, as shown in the figure. For example, it may be implemented as a standard server 820, or multiple times in a group of such servers. In addition, it may be implemented in a personal computer such as a laptop computer 822. It may also be implemented as part of a rack server system 824. Alternatively, components from the computing device 800 may be combined with other components in a mobile device, such as a mobile computing device 850. Each of such devices may contain one or more of the computing device 800 and the mobile computing device 850, and an entire system may be made up of multiple computing devices communicating with each other.

The mobile computing device 850 includes a processor 852, a memory 864, an input/output device such as a display 854, a communication interface 866, and a transceiver 868, among other components. The mobile computing device 850 may also be provided with a storage device, such as a micro-drive or other device, to provide additional storage. Each of the processor 852, the memory 864, the display 854, the communication interface 866, and the transceiver 868, are interconnected using various buses, and several of the components may be mounted on a common motherboard or in other manners as appropriate.

The processor 852 can execute instructions within the mobile computing device 850, including instructions stored in the memory 864. The processor 852 may be implemented as a chipset of chips that include separate and multiple analog and digital processors. The processor 852 may provide, for example, for coordination of the other components of the mobile computing device 850, such as control of user interfaces, applications run by the mobile computing device 850, and wireless communication by the mobile computing device 850.

The processor 852 may communicate with a user through a control interface 858 and a display interface 856 coupled to the display 854. The display 854 may be, for example, a TFT (Thin-Film-Transistor Liquid Crystal Display) display or an OLED (Organic Light Emitting Diode) display, or other appropriate display technology. The display interface 856 may comprise appropriate circuitry for driving the display 854 to present graphical and other information to a user. The control interface 858 may receive commands from a user and convert them for submission to the processor 852. In addition, an external interface 862 may provide communication with the processor 852, so as to enable near area communication of the mobile computing device 850 with other devices. The external interface 862 may provide, for example, for wired communication in some implementations, or for wireless communication in other implementations, and multiple interfaces may also be used.

The memory 864 stores information within the mobile computing device 850. The memory 864 can be implemented as one or more of a computer-readable medium or media, a volatile memory unit or units, or a non-volatile memory unit or units. An expansion memory 874 may also be provided and connected to the mobile computing device 850 through an expansion interface 872, which may include, for example, a SIMM (Single In Line Memory Module) card interface. The expansion memory 874 may provide extra storage space for the mobile computing device 850, or may also store applications or other information for the mobile computing device 850. Specifically, the expansion memory 874 may include instructions to carry out or supplement the processes described above, and may include secure information also. Thus, for example, the expansion memory 874 may be provided as a security module for the mobile computing device 850, and may be programmed with instructions that permit secure use of the mobile computing device 850. In addition, secure applications may be provided via the SIMM cards, along with additional information, such as placing identifying information on the SIMM card in a non-hackable manner.

The memory may include, for example, flash memory and/or NVRAM memory (non-volatile random access memory), as discussed below. In some implementations, instructions are stored in an information carrier, that the instructions, when executed by one or more processing devices (for example, processor 852), perform one or more methods, such as those described above. The instructions can also be stored by one or more storage devices, such as one or more computer- or machine-readable mediums (for example, the memory 864, the expansion memory 874, or memory on the processor 852). In some implementations, the instructions can be received in a propagated signal, for example, over the transceiver 868 or the external interface 862.

The mobile computing device 850 may communicate wirelessly through the communication interface 866, which may include digital signal processing circuitry where necessary. The communication interface 866 may provide for communications under various modes or protocols, such as GSM voice calls (Global System for Mobile communications), SMS (Short Message Service), EMS (Enhanced Messaging Service), or MMS messaging (Multimedia Messaging Service), COMA (code division multiple access), TDMA (time division multiple access), PDC (Personal Digital Cellular), WCDMA (Wideband Code Division Multiple Access), CDMA2000, or GPRS (General Packet Radio Service), among others. Such communication may occur, for example, through the transceiver 868 using a radio-frequency. In addition, short-range communication may occur, such as using a Bluetooth, WiFi, or other such transceiver. In addition, a GPS (Global Positioning System) receiver module 870 may provide additional navigation- and location-related wireless data to the mobile computing device 850, which may be used as appropriate by applications running on the mobile computing device 850.

The mobile computing device 850 may also communicate audibly using an audio codec 860, which may receive spoken information from a user and convert it to usable digital information. The audio codec 860 may likewise generate audible sound for a user, such as through a speaker, e.g., in a handset of the mobile computing device 850. Such sound may include sound from voice telephone calls, may include recorded sound (e.g., voice messages, music files, etc.) and may also include sound generated by applications operating on the mobile computing device 850.

The mobile computing device 850 may be implemented in a number of different forms, as shown in the figure. For example, it may be implemented as a cellular telephone 880. It may also be implemented as part of a smart-phone 882, personal digital assistant, or other similar mobile device.

Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

These computer programs (also known as programs, software, software applications or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms machine-readable medium and computer-readable medium refer to any computer program product, apparatus and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term machine-readable signal refers to any signal used to provide machine instructions and/or data to a programmable processor.

To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

Although a few implementations have been described in detail above, other modifications are possible. For example, the logic flows described in the application do not require the particular order shown, or sequential order, to achieve desirable results. In addition, other actions may be provided, or actions may be eliminated, from the described flows, and other components may be added to, or removed from, the described systems. Accordingly, other implementations are within the scope of the following claims. Also, a feature described in one aspect or implementation may be applied in any other aspect or implementation. 

What is claimed is:
 1. A method comprising: obtaining, by data processing hardware, a plurality of non-watermarked speech samples, each non-watermarked speech not including an audio watermark sample; from each non-watermarked speech sample of the plurality of non-watermarked speech samples, generating, by the data processing hardware, one or more corresponding watermarked speech samples that each include at least one audio watermark: training, by the data processing hardware, using the plurality of non-watermarked speech samples and corresponding watermarked speech samples, a model to determine whether a given audio data sample includes an audio watermark; and after training the model, transmitting, by the data processing hardware, the trained model to a user computing device, the user computing device configured to: receive audio data corresponding to playback of an utterance: obtain, using the trained model, data indicating whether the audio data includes the audio watermark; and based on the data indicating whether the audio data includes the audio watermark, determine to continue or cease processing the received audio data.
 2. The method of claim 1, wherein each of the plurality of non-watermarked speech samples comprises an utterance of a hotword.
 3. The method of claim 1, wherein a portion of the plurality of non-watermarked speech samples comprise an utterance of a hotword.
 4. The method of claim 1, wherein at least one of the plurality of non-watermarked speech samples is recorded by a device that is different than a device used to record at least one other one of the plurality of non-watermarked speech samples.
 5. The method of claim 1, wherein at least one of the plurality of non-watermarked speech samples comprises different spoken terms than at least one other one of the plurality of non-watermarked speech samples.
 6. The method of claim 1, wherein at least some of the plurality non-watermarked speech samples comprise background noise.
 7. The method of claim 1, wherein generating the one or more corresponding watermarked speech samples that each include at least one audio watermark comprises, from at least one of the plurality of non-watermarked speech samples that comprises an utterance of a hotword, generating at least one corresponding watermarked speech sample that includes the at least one audio watermark only overlapping the hotword.
 8. The method of claim 1, wherein generating the one or more corresponding watermarked speech samples that each include at least one audio watermark comprises, from at least one of the plurality of non-watermarked speech samples that comprises an utterance of a hotword, generating at least one corresponding watermarked speech sample that includes a sequence of audio watermarks that overlap the hotword and precede the hotword.
 9. The method of claim 1, wherein generating the one or more corresponding watermarked speech samples comprises, from at least one of the plurality of non-watermarked speech samples: generating a first corresponding watermarked speech samples that includes a first sequence of equally-spaced audio watermarks, and generating a second corresponding watermarked speech sample that includes a second sequence of equally-spaced audio watermarks, wherein a duration between the audio watermarks in the second sequence of equally-spaced audio watermarks is different than a duration between the audio watermarks in the first sequence of equally-spaced audio watermarks.
 10. The method of claim 1, wherein the at least one audio watermark in one of the watermarked speech samples is different than the at least one audio watermark in another one of the watermarked speech samples.
 11. The method of claim 1, further comprising, prior to training the model: labeling, by the data processing hardware, each of the plurality of non-watermarked speech samples used to train the model as including an audio watermark; and labeling, by the data processing hardware, each of the corresponding watermarked speech samples used to train the model as not including an audio watermark.
 12. The method of claim 1, wherein training the model comprises using machine learning to train the model on the plurality of non-watermarked speech samples and the corresponding watermarked speech samples to determine whether the given audio data sample includes the audio watermark.
 13. The method of claim 1, wherein the user device is configured to use the trained model to obtain the data indicating whether the audio data includes the audio watermark in response to determining that the audio data includes an utterance of a particular, predefined hotword.
 14. A system comprising: data processing hardware; and memory hardware in communication with the data processing hardware and storing instructions that when executed on the data processing hardware cause the data processing hardware to perform operations comprising: obtaining a plurality of non-watermarked speech samples, each non-watermarked speech not including an audio watermark sample; from each non-watermarked speech sample of the plurality of non-watermarked speech samples, generating one or more corresponding watermarked speech samples that each include at least one audio watermark; training, using the plurality of non-watermarked speech samples and corresponding watermarked speech samples, a model to determine whether a given audio data sample includes an audio watermark; and after training the model, transmitting the trained model to a user computing device, the user computing device configured to: receive audio data corresponding to playback of an utterance; obtain, using the trained model, data indicating whether the audio data includes the audio watermark; and based on the data indicating whether the audio data includes the audio watermark, determine to continue or cease processing the received audio data.
 15. The system of claim 14, wherein each of the plurality of non-watermarked speech samples comprises an utterance of a hotword.
 16. The system of claim 14, wherein a portion of the plurality of non-watermarked speech samples comprise an utterance of a hotword.
 17. The system of claim 14, wherein at least one of the plurality of non-watermarked speech samples is recorded by a device that is different than a device used to record at least one other one of the plurality of non-watermarked speech samples.
 18. The system of claim 14, wherein at least one of the plurality of non-watermarked speech samples comprises different spoken terms than at least one other one of the plurality of non-watermarked speech samples.
 19. The system of claim 14, wherein at least some of the plurality non-watermarked speech samples comprise background noise.
 20. The system of claim 14, wherein generating the one or more corresponding watermarked speech samples that each include at least one audio watermark comprises, from at least one of the plurality of non-watermarked speech samples that comprises an utterance of a hotword, generating at least one corresponding watermarked speech sample that includes the at least one audio watermark only overlapping the hotword.
 21. The system of claim 14, wherein generating the one or more corresponding watermarked speech samples that each include at least one audio watermark comprises, from at least one of the plurality of non-watermarked speech samples that comprises an utterance of a hotword, generating at least one corresponding watermarked speech sample that includes a sequence of audio watermarks that overlap the hotword and precede the hotword.
 22. The system of claim 14, wherein generating the one or more corresponding watermarked speech samples comprises, from at least one of the plurality of non-watermarked speech samples: generating a first corresponding watermarked speech samples that includes a first sequence of equally-spaced audio watermarks; and generating a second corresponding watermarked speech sample that includes a second sequence of equally-spaced audio watermarks, wherein a duration between the audio watermarks in the second sequence of equally-spaced audio watermarks is different than a duration between the audio watermarks in the first sequence of equally-spaced audio watermarks.
 23. The system of claim 14, wherein the at least one audio watermark in one of the watermarked speech samples is different than the at least one audio watermark in another one of the watermarked speech samples.
 24. The system of claim 14, wherein the operations further comprise, prior to training the model: labeling each of the plurality of non-watermarked speech samples used to train the model as including an audio watermark; and labeling each of the corresponding watermarked speech samples used to train the model as not including an audio watermark.
 25. The system of claim 14, wherein training the model comprises using machine learning to train the model on the plurality of non-watermarked speech samples and the corresponding watermarked speech samples to determine whether the given audio data sample includes the audio watermark.
 26. The system of claim 14, wherein the user device is configured to use the trained model to obtain the data indicating whether the audio data includes the audio watermark in response to determining that the audio data includes an utterance of a particular, predefined hotword. 